package org.vectrics.recruiter.reporting;


import java.awt.Color;

import com.lowagie.text.Font;
import com.lowagie.text.FontFactory;



public class ReportConstants {
	public static Color TABLE_LABEL_COLOR = new Color(212, 218, 220);   
	public static Color TABLE_HEAD_COLOR = new Color(232, 238, 240);   
	public static Color FOOTER_LINE_COLOR = new Color(120, 135, 140);
	public static float FOOTER_LINE_SIZE = 3;	 
	public static Font titleFont = FontFactory.getFont(FontFactory.HELVETICA, 14, Font.NORMAL, new Color(30, 40, 100));
	public static Font heading1Font = FontFactory.getFont(FontFactory.HELVETICA, 22, Font.BOLD, new Color(80, 90, 150));
	public static Font heading2Font = FontFactory.getFont(FontFactory.HELVETICA, 18, Font.BOLD, new Color(30, 40, 100));
	public static Font heading3Font = FontFactory.getFont(FontFactory.HELVETICA, 14, Font.BOLD, new Color(30, 40, 100));
	public static Font stdFont = FontFactory.getFont(FontFactory.HELVETICA, 10, Font.NORMAL, new Color(0, 0, 0));
	public static Font smlFont = FontFactory.getFont(FontFactory.HELVETICA, 9, Font.NORMAL, new Color(0, 0, 0));
	public static Font smlBoldFont = FontFactory.getFont(FontFactory.HELVETICA, 9, Font.BOLD, new Color(0, 0, 0));
	public static Font tinyFont = FontFactory.getFont(FontFactory.HELVETICA, 8, Font.NORMAL, new Color(0, 0, 0));
	public static Font stdItalicsFont = FontFactory.getFont(FontFactory.HELVETICA, 10, Font.ITALIC, new Color(0, 0, 0));
	public static Font stdBoldFont = FontFactory.getFont(FontFactory.HELVETICA, 10, Font.BOLD, new Color(0, 0, 0));

	static public Font getFont(int size, Color color, boolean bold) {
		int fontWeight = Font.NORMAL;
		if (bold == true)
			fontWeight = Font.BOLD;
		Font font = FontFactory.getFont(FontFactory.HELVETICA, size, fontWeight, color);
		return(font);
	}

	static public Font copyFont(Font font) {
		Font newFont = FontFactory.getFont(font.getFamilyname(), font.getSize(), font.getStyle(), font.getColor());
		return(newFont);
	}
	
	
}
